package com.xy.lang.enums;

/**
 * 应用范围：0-未定义，1-生产，2-研发，3-质检，9-其它
 */
public enum ScopeEnum implements CodeEnum {

    UN_DEFINE(0, "未定义"),
    MANUFACTURE(1, "生产"),
    RESEARCH(2, "研发"),
    CHECK(2, "质检"),
    OTHER(9, "其它");

    private int code;
    private String name;

    ScopeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
